From: Paul Eggert Date: Thu, 15 Oct 2015 17:51:25 +0000 (-0700) Subject: Fix animation timeout delay calculation X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~23^2~1927 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b4c00f9ac9d57eca8f2a4950fca6198065dbdcd0;p=emacs.git Fix animation timeout delay calculation * lisp/image.el (image-animate-timeout): Don’t assume speed is floating-point. --- diff --git a/lisp/image.el b/lisp/image.el index d557e39aac2..295b79f161d 100644 --- a/lisp/image.el +++ b/lisp/image.el @@ -735,7 +735,7 @@ for the animation speed. A negative value means to animate in reverse." ;; Subtract off the time we took to load the image from the ;; stated delay time. (delay (max (+ (* (or (cdr animation) image-default-frame-delay) - (/ 1 (abs speed))) + (/ 1.0 (abs speed))) time (- (float-time))) image-minimum-frame-delay)) done)